import request from '@/utils/request'
import { genParam } from '@/utils/encrypt'

export function getList(params) {
  genParam(params)

  return request({
    url: '/admin/tbkproduct/list',
    method: 'get',
    params
  })
}


export function editTbkproduct(param) {
  const params = {
    pic: param.pic,
    recommend:param.recommend,
    stats:param.stats
  }
  const paramStr = genParam(params)
console.log(paramStr);
  return request({
    url: '/admin/tbkproduct/' + param.product_id + '/edit',
    method: 'put',
    data: paramStr
  })
}
